﻿
namespace GuidanceExplorer.Model.Conditions
{
    public class OrGenericMenuItemCondition<T, M> : IMenuItemCondition
        where T : IMenuItemCondition, new()
        where M : IMenuItemCondition, new()
    {
        public bool ShowMenuItem(MenuItemAttribute attribute, IModelItem modelItem)
        {
            return (new T().ShowMenuItem(attribute, modelItem) || new M().ShowMenuItem(attribute, modelItem));
        }
    }

}
